import { createVuePlugin } from 'vite-plugin-vue2'
import { resolve } from 'path'
import { defineConfig } from 'vite'

// vite.config.js
export default defineConfig({
    base: './',
    server: {
        host: '0.0.0.0',
    },
    plugins: [createVuePlugin()],
    resolve: {
        extensions: ['.vue', '.mjs', '.js', '.ts', '.jsx', '.tsx', '.json'],
        alias: {
            // vue2项目别名一般都是@，vue3中一般使用/@/, 为方便使用
            '@': resolve('./src')
        }
    }
})
